Skip to content

docs: trim AGENTS.md duplication into skills#10007

Merged
markijbema merged 2 commits into
mainfrom
mark/trim-agents-md
May 7, 2026
Merged

docs: trim AGENTS.md duplication into skills#10007
markijbema merged 2 commits into
mainfrom
mark/trim-agents-md

Conversation

@kilo-code-bot
Copy link
Copy Markdown
Contributor

@kilo-code-bot kilo-code-bot Bot commented May 7, 2026

Summary

Cuts ~500 lines from AGENTS.md context by moving content that was duplicated by — or naturally lives in — skills out of the always-loaded files.

  • packages/kilo-jetbrains/AGENTS.md: 747 → 220 lines. The entire "UI Design Guidelines" section was duplicated by packages/kilo-jetbrains/.kilo/skills/jetbrains-ui-style/SKILL.md, which is more comprehensive and was already referenced from the top of the file. Replaced with a pointer plus 5 non-negotiables (no Compose, no JCEF, prefer Kotlin UI DSL v2, use platform components, never hardcode colors/fonts/sizes).
  • New .kilo/skills/gh-issues/SKILL.md: GitHub Issues guidance (templates, project boards, title rules, gh auth refresh -s project recovery) is only relevant when running gh issue create, so it now loads on demand.
  • Root AGENTS.md: collapsed the ~50-line kilocode_change marker syntax block into a 4-bullet summary plus a pointer to kilocode-merge-minimizer (which already covers the same ground in more depth).

Why

The argument isn't really tokens — it's attention dilution. Long inline reference material competes with the rules that must land for every code generation (style guide, build commands, fork-merge philosophy). Moving on-demand reference into skills lets the always-loaded layer stay focused on what every task needs.

Verified bun run script/check-md-table-padding.ts still passes.

- Strip ~530 lines of UI guide duplication from packages/kilo-jetbrains/AGENTS.md;
  the jetbrains-ui-style skill is more comprehensive and is now the source of truth.
- Move GitHub Issues guidance into a new .kilo/skills/gh-issues/SKILL.md so it
  loads only when needed.
- Collapse duplicated kilocode_change marker examples in root AGENTS.md to a
  brief summary plus pointer to the kilocode-merge-minimizer skill.
@kilo-code-bot
Copy link
Copy Markdown
Contributor Author

kilo-code-bot Bot commented May 7, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (3 files)
  • .kilo/skills/gh-issues/SKILL.md
  • AGENTS.md
  • packages/kilo-jetbrains/AGENTS.md

Reviewed by gpt-5.5-20260423 · 249,430 tokens

Per feedback, drop the jetbrains UI section trim from this PR. The
root AGENTS.md cleanup and the new gh-issues skill stay.
@markijbema markijbema merged commit 81ab3bd into main May 7, 2026
11 checks passed
@markijbema markijbema deleted the mark/trim-agents-md branch May 7, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants